// Copyright 2022 a.o.smith ALL Rights Reserved
package com.liuxinlong.modules.common.service.impl;

import com.liuxinlong.modules.common.service.NotificationService;
import com.liuxinlong.modules.dao.NotificationDao;
import com.liuxinlong.modules.entity.Notification;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 消息通知接口层实现
 *
 * @author liuxinlong@hotwater.com.cn
 * @version 1.0.0
 * @since 2022年8月16日
 */
@Service
@Slf4j
public class NotificationServiceImpl implements NotificationService {

    @Autowired
    private NotificationDao notificationDao;

    @Override
    public List<Notification> pageNotification(Map<String, Object> queryParam) {
        return notificationDao.pageNotification(queryParam);
    }

    @Override
    public int getNotificationCount(Map<String, Object> queryParam) {
        return notificationDao.getNotificationCount(queryParam);
    }
}
